<?php


class Game
{

    /*****************************
    参数
     *****************************/

    //游戏类型
    const Game_Type = 2;

    /*	房间用户uid	*/
    const RoomUser_UID			= "[roomid]:[accountid]";


    /*	开局默认分数	*/
    const Default_Score			= 10;


    /*	游戏人数范围	*/
    const GameUser_MinCount		= 2;
    const GameUser_MaxCount		= 3;

    /*	用户状态	*/
    const AccountStatus_Initial		= 0;	//首次进房初始状态
    const AccountStatus_Notready	= 1;	//未准备
    const AccountStatus_Ready		= 2;	//已准备
    const AccountStatus_NotAsk		= 3;	//已开局未叫地主
    const AccountStatus_Farmer		= 4;	//农民
    const AccountStatus_Landlord	= 5;	//地主
    const AccountStatus_End			= 6;	//结束

    /*	在线状态	*/
    const OnlineStatus_Offline		= 0;	//离线
    const OnlineStatus_Online		= 1;	//在线

    /*	游戏中状态	*/
    const PlayingStatus_Waiting		= 1;	//等待别人中
    const PlayingStatus_Asking		= 2;	//叫地主
    const PlayingStatus_Choosing	= 3;	//出牌中

    /*	房间状态	*/
    const RoomStatus_Waiting		= 1;	//等待中
    const RoomStatus_Playing		= 2;	//游戏中
    const RoomStatus_Closed			= 3;	//已关闭

    /*	操作超时时间	*/
    const LimitTime_StartGame		= 60;	//第一局开局时限
    const LimitTime_Ready			= 30;	//准备时限
    const LimitTime_Choosing		= 30;	//打牌时限
    const LimitTime_Asking			= 30;	//叫地主时限
    const LimitTime_ClearRoom		= 300;	//时限
    const LimitTime_BreakRoom		= 190;	//自动解散房间时限

}


/* End of file constants.php */
/* Location: ./application/config/constants.php */
